package com.yxt.qmgf.start.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxt.qmgf.start.sql.LoginSQLProvider;
import com.yxt.qmgf.start.vo.LoginVO;
import com.yxt.qmgf.userinfo.vo.UserInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

@Mapper
public interface LoginDao extends BaseMapper<LoginVO> {
    // 直接使用MyBatis-Plus的LambdaQueryWrapper

    @SelectProvider(type= LoginSQLProvider.class, method="verifySelect")
    LoginVO verifySelect(@Param("username")String username);

    @SelectProvider(type= LoginSQLProvider.class, method="Delete")
    void Delete(@Param("uid") String uid);

    @SelectProvider(type= LoginSQLProvider.class, method="Insert")
    void Insert(@Param("vo") LoginVO vo);

    @SelectProvider(type= LoginSQLProvider.class, method="SelectCount")
    int SelectCount();


}
